using System.ComponentModel.DataAnnotations;

namespace FytSoa.Application.Cm.Param;

public class CmCommunityAddDto
{
    /// <summary>
    /// 唯一编号
    /// </summary>
    public long Id { get; set; }

    /// <summary>
    /// 用户编号
    /// </summary>
    [Required]
    public long UserId { get; set; }

    /// <summary>
    /// 标题
    /// </summary>
    public string Title { get; set; }

    /// <summary>
    /// 简介
    /// </summary>
    [Required]
    [StringLength(900)]
    public string Summary { get; set; }

    /// <summary>
    /// 图片列表
    /// </summary>
    public List<string> ImageArr { get; set; } = new();

    /// <summary>
    /// 视频地址
    /// </summary>
    public string VideoUrl { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }=DateTime.Now;
}

public class CmCommunityAuditParam
{
    public List<long> Ids { get; set; }

    public bool Audit { get; set; }
}